package com.alcatel_lucent.scalastudy

import com.alcatel_lucent.scalastudy.model.Element.elem
import com.alcatel_lucent.scalastudy.model._

/**
 * Created with IntelliJ IDEA.
 * User: Guoshun Wu
 * Date: 13-6-21
 * Time: 下午8:41
 */
object PartTwo extends App {

  //  testTyNameParameter()
  testOOP()

  def testTyNameParameter() {
    val assertionEnabled = true

    def myAssert(predicate: => Boolean) = if (assertionEnabled && !predicate) throw new AssertionError()

    myAssert {
      5 > 3
    }
  }


  def testOOP() {
    val queue = new BasicIntQueue with Doubling with Incrementing with Filtering
    queue.put(-2)
    queue.put(0)
    queue.put(10)
    println(queue.get())
//    println(queue.get())


  }

}

